Skip to content

Reserve cores 0 and 1 for the OS#2851

Merged
joshua-spacetime merged 1 commit into
masterfrom
joshua/perf/do-not-pin-to-cores-0-and-1
Jun 10, 2025
Merged

Reserve cores 0 and 1 for the OS#2851
joshua-spacetime merged 1 commit into
masterfrom
joshua/perf/do-not-pin-to-cores-0-and-1

Conversation

@joshua-spacetime

Copy link
Copy Markdown
Contributor

Description of Changes

This patch makes it so that we do not pin any threads to core IDs 0 and 1, and instead reserve them for the OS. See the comment for more explanation.

API and ABI breaking changes

None

Expected complexity level and risk

1

A very simple change, but because we are taking cores away from the database we may need to change the distribution of the remaining cores.

Testing

  • Performance test

Before this change we saw the OS preempting reducer threads to handle interrupt requests, after this change - along with mapping these interrupt handlers to the reserved cores - we did not.

@joshua-spacetime joshua-spacetime requested a review from gefjon June 10, 2025 16:35
@joshua-spacetime joshua-spacetime self-assigned this Jun 10, 2025
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jun 10, 2025
Merged via the queue into master with commit a19bd45 Jun 10, 2025
30 of 31 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/perf/do-not-pin-to-cores-0-and-1 branch June 10, 2025 18:24
@egormanga

Copy link
Copy Markdown
Contributor

Shouldn't this be handled on the OS level instead? What about the case when running irqbalance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants